package org.tea.inventory.model.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.tea.inventory.base.validation.groups.UpdateGroup;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 消息模板
 */
@ApiModel(description = "消息模板")
@Data
@NoArgsConstructor
public class MallMsgTplDto implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    private Long id;
    /**
     * 消息类型
     */
    @ApiModelProperty(value = "消息类型")
    @NotBlank(message = "消息类型不能为空")
    private String type;
    /**
     * 消息标题
     */
    @ApiModelProperty(value = "消息标题")
    @NotBlank(message = "标题不能为空")
    private String title;
    /**
     * 模板HTML内容
     */
    @ApiModelProperty(value = "模板HTML内容")
    @NotBlank(message = "模板不能为空")
    private String htmlContent;
    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @ApiModelProperty(value = "删除标志（0代表存在 1代表删除）")
    private String delFlag;
}